<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>

  

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <jsp:include page="/schedule/util.jsp"></jsp:include>	
		<title>自动排课系统</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<!-- 在底部显示当前登录的用户  日期 和版权所有 -->
		<script language=JavaScript><!--
 function getInformation()　{
      //获取用户名
     // var userName="<%=request.getSession().getAttribute("type")%>";
    
     var userName;
       if('${admin}'!=null&&('${admin.admin_name }')!='')
       {
          userName="管理员用户："+'${admin.admin_name }'; 
       }
       if('${teachers}'!=null&&('${teachers.teachers_name}')!='')
       {
          userName="教师用户："+'${teachers.teachers_name}';
       }
       if('${classes}'!=null&&('${classes.name}')!='' )
       {
          userName="班级用户："+'${classes.name}';
       }
      
　　　　var myDate = new Date();
　　　　var month=myDate.getMonth();
　　　　month=month+1;
　　　　var xq=myDate.getDay();
　　　　var theDay;
　　　　switch (xq)  
　　　　{  
               case 0:  
                 theDay="日";
                 break  
               case 6:  
                 theDay="六";
                 break  
               case 5:  
                 theDay="五";
                 break  
               case 4:  
                 theDay="四";
                 break  
               case 3:  
                 theDay="三";
                 break  
               case 2:  
                 theDay="二";
                 break  
               default:  
                 theDay="一";
　　　　} 
　　　　
　　　　var buttomLog="<font color=#CC9966 size=2>"+userName
            +"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
           +myDate.getFullYear()+"年"+month+"月"+myDate.getDate()+"日"+ " 星期"+theDay
           +"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
           + "- &copy;2011 <a href='http://www.huas.cn' target='_blank'>信计08级</a>版权所有"+"</font>";
       document.getElementById("tim").innerHTML=buttomLog;
       var ctimer=setTimeout('getInformation()',960);
        }      

--></script>
</head>
<body onload="getInformation()" topmargin="0" leftmargin="0" rightmargin="0">
  <div class="getInformation" id="tim"  style="text-align: center;  background-color:#D4DFFF ;  border:2px solid #9CF" > </div>
  </body>
</html>
